
const data = {
  state: {
    team: [
      { value: '1', label: '团队1' },
      { value: '2', label: '团队2' },
      { value: '3', label: '团队3' },
      { value: '4', label: '团队4' },
      { value: '5', label: '团队5' },
      { value: '6', label: '团队6' },
      { value: '7', label: '团队7' },
      { value: '8', label: '团队8' },
      { value: '9', label: '团队9' },
      { value: '10', label: '团队10' }
    ],
    anchor: [
      { value: '1', label: '主播1' },
      { value: '2', label: '主播2' },
      { value: '3', label: '主播3' },
      { value: '4', label: '主播4' },
      { value: '5', label: '主播5' },
      { value: '6', label: '主播6' },
      { value: '7', label: '主播7' },
      { value: '8', label: '主播8' },
      { value: '9', label: '主播9' },
      { value: '10', label: '主播10' }
    ],
    website: [
      { value: '1', label: '网站1' },
      { value: '2', label: '网站2' },
      { value: '3', label: '网站3' },
      { value: '4', label: '网站4' },
      { value: '5', label: '网站5' },
      { value: '6', label: '网站6' },
      { value: '7', label: '网站7' },
      { value: '8', label: '网站8' },
      { value: '9', label: '网站9' },
      { value: '10', label: '网站10' }
    ]
  },

  mutations: {
    SET_TEAM: (state, team) => {
      state.team = team
    },
    SET_ANCHOR: (state, anchor) => {
      state.anchor = anchor
    },
    SET_WEBSITE: (state, website) => {
      state.website = website
    }
  },

  actions: {
    // 获取所有团队列表
    GetTeam({ commit }) {
      return new Promise((resolve) => {
        // 向后端请求路由数据
        // api.loginapi.getRouters().then((res) => {
        //   commit('SET_TEAM', res.data)
        //   resolve(res)
        // })
      })
    },
    // 获取所有主播列表
    GetAnchor({ commit }) {
      return new Promise((resolve) => {
        // 向后端请求路由数据
        // api.loginapi.getRouters().then((res) => {
        //   commit('SET_TEAM', res.data)
        //   resolve(res)
        // })
      })
    },
    // 获取所有网站列表
    GetWebsite({ commit }) {
      return new Promise((resolve) => {
        // 向后端请求路由数据
        // api.loginapi.getRouters().then((res) => {
        //   commit('SET_TEAM', res.data)
        //   resolve(res)
        // })
      })
    }
  }
}

export default data
